<?php

namespace app\admin\controller;
use think\Session;
use think\Controller;
use think\Request;
header("content-type:text/html;charset=utf-8");
class Common extends Controller
{
    // tp的构造方法
    public function _initialize ()
    {
        if ( session('id') == NULL) {
            echo "<script>
            parent.location.href='".url('login/login')."';
            </script>";
        }
    }

}
?>